package cn.rkylin.oms.item.domain;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 平台规格对应组合商品实体，对应oms_ec_sku_group表
 *
 * @author wangxing
 * @version 1.0
 * @created 15-2月-2017 10:00:00
 */
public class SkuGroup {
    /**
     * 序列化id
     */
    private static final long serialVersionUID = 2111999898392774878L;

    private String ecSkuGroupId;

    private String ecSkuId;

    private String ecItemId;

    private String skuId;

    private String skuCode;

    private String skuName;

    private String goodsId;

    private String goodsCode;

    private String goodsName;

    private Integer num;

    private BigDecimal priceRatio;

    private BigDecimal upRate;

    private String remark;

    private String deleted;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    public String getEcSkuGroupId() {
        return ecSkuGroupId;
    }

    public void setEcSkuGroupId(String ecSkuGroupId) {
        this.ecSkuGroupId = ecSkuGroupId == null ? null : ecSkuGroupId.trim();
    }

    public String getEcSkuId() {
        return ecSkuId;
    }

    public void setEcSkuId(String ecSkuId) {
        this.ecSkuId = ecSkuId == null ? null : ecSkuId.trim();
    }

    public String getEcItemId() {
        return ecItemId;
    }

    public void setEcItemId(String ecItemId) {
        this.ecItemId = ecItemId == null ? null : ecItemId.trim();
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId == null ? null : skuId.trim();
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode == null ? null : skuCode.trim();
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName == null ? null : skuName.trim();
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode == null ? null : goodsCode.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getPriceRatio() {
        return priceRatio;
    }

    public void setPriceRatio(BigDecimal priceRatio) {
        this.priceRatio = priceRatio;
    }

    public BigDecimal getUpRate() {
        return upRate;
    }

    public void setUpRate(BigDecimal upRate) {
        this.upRate = upRate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted == null ? null : deleted.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    /**
     * 系统规格标准售价
     */
    private BigDecimal sysSalePrice;

    /**
     * 系统规格成本价
     */
    private BigDecimal costPrice;

    /**
     * 系统规格虚拟商品
     */
    private String isVirt;

    public BigDecimal getSysSalePrice() {
        return sysSalePrice;
    }

    public void setSysSalePrice(BigDecimal sysSalePrice) {
        this.sysSalePrice = sysSalePrice;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public String getIsVirt() {
        return isVirt;
    }

    public void setIsVirt(String isVirt) {
        this.isVirt = isVirt == null ? null : isVirt.trim();
    }
}
